package com.coc.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * (SysRolePermission)表实体类
 *
 * @author songju
 * @since 2020-02-18 22:49:43
 */
@SuppressWarnings("serial")
public class SysRolePermission extends Model<SysRolePermission> {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer permitId;
    
    private Integer roleId;

    public Integer getPermitId() {
        return permitId;
    }

    public void setPermitId(Integer permitId) {
        this.permitId = permitId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }